package org.zhou.demo1;

import java.io.Serializable;

public class LogModel implements Serializable {
    private String logId;
    private String operateUser;
    private String operateTime;
    private String logContent;

    public LogModel(String logId, String operateUser, String operateTime, String logContent) {
        this.logId = logId;
        this.operateUser = operateUser;
        this.operateTime = operateTime;
        this.logContent = logContent;
    }

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getOperateUser() {
        return operateUser;
    }

    public void setOperateUser(String operateUser) {
        this.operateUser = operateUser;
    }

    public String getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(String operateTime) {
        this.operateTime = operateTime;
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent;
    }

    @Override
    public String toString() {
        return String.format("{\n" +
                "    \"logId\": %s,\n" +
                "    \"operateUser\": %s,\n" +
                "    \"operateTime\": %s,\n" +
                "    \"logContent\": %s\n" +
                "}", this.logId, operateUser, operateTime, logContent);
    }
}
